* {
    box-sizing: border-box;
}
a {
    text-decoration: none!important;
}
.wrap {
    position: relative;
    left: 50%;
    /* 删除 height 属性 */
    transform: translate(-50%, -50%);
}

h1 {
    font-size: 34px; /* 修改字体大小 */
    text-align: center;
}

span {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    border-bottom: 0.05em solid #fff;
}

.c {
    text-shadow: -0.025em -0.025em 0 rgba(0, 255, 255, 0.8);
    animation-duration: 0.3s, 0.2s;
    animation-delay: 0s, 0.3s;
    animation-name: colorflash, underline-cyan;
    animation-fill-mode: none, forwards;
}

.m {
    text-shadow: 0.025em 0.025em 0 rgba(255, 0, 255, 0.8);
    animation-duration: .3s, .2s;
    animation-delay: 0.3s, 0.5s;
    animation-name: colorflash, underline-magenta;
    animation-fill-mode: none, forwards;
}

.y {
    text-shadow: -0.025em 0.025em 0 rgba(255, 255, 0, 0.8);
    animation-duration: .3s, .2s;
    animation-delay: 0.5s, 0.7s;
    animation-name: colorflash, underline-yellow;
    animation-fill-mode: none, forwards;
}

.k {
    text-shadow: 0.02em -0.02em 0 rgba(0, 0, 0, 0.5);
    animation-duration: .3s, .2s;
    animation-delay: 0.7s, 0.9s;
    animation-name: colorflash, underline-black;
    animation-fill-mode: none, forwards;
}

.c:hover {
    transform: rotateY(20deg) rotateZ(28deg) scale(1.2);
}

.m:hover {
    transform: rotateY(-10deg) rotateZ(-20deg) scale(1.1);
}

.y:hover {
    transform: rotateY(10deg) rotateZ(12deg) scale(1.3);
}

.k:hover {
    transform: rotateY(-15deg) rotateZ(-15deg) scale(1.24);
}

button {
    display: block;
    margin: 1rem auto;
    padding: 1rem 2rem;
    border: 0.2em solid rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    text-transform: lowercase;
    background: transparent;
    outline: 0;
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.025em;
}

button:hover,
button:focus {
    background: magenta;
    color: white;
    border-color: rgba(0, 0, 0, 0);
}

button:active {
    transform: translateY(5px);
}

@keyframes colorflash {
    0% {
        color: cyan;
        transform: translateY(-10%);
    }
    33% {
        color: magenta;
        transform: translateY(-5%);
    }
    66% {
        color: yellow;
        transform: translateY(5%);
    }
    100% {
        color: rgba(0, 0, 0, 0.7);
        transform: translateY(0);
    }
}

@keyframes underline-cyan {
    to {
        border-bottom-color: cyan;
    }
}

@keyframes underline-yellow {
    to {
        border-bottom-color: yellow;
    }
}

@keyframes underline-magenta {
    to {
        border-bottom-color: magenta;
    }
}

@keyframes underline-black {
    to {
        border-bottom-color: rgba(0, 0, 0, 0.7);
    }
}

@media screen and (max-width: 27rem) {
    h1 {
        font-size: 15vmax;
    }
    body::before {
        background-size: 50%;
    }
}